Optimal. Leaf size=78 \[ \frac{(b d-2 a e) \tanh ^{-1}\left (\frac{b+2 c x^3}{\sqrt{b^2-4 a c}}\right )}{3 a \sqrt{b^2-4 a c}}-\frac{d \log \left (a+b x^3+c x^6\right )}{6 a}+\frac{d \log (x)}{a} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.127953, antiderivative size = 78, normalized size of antiderivative = 1., number of steps used = 7, number of rules used = 6, integrand size = 25, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.24, Rules used = {1474, 800, 634, 618, 206, 628} \[ \frac{(b d-2 a e) \tanh ^{-1}\left (\frac{b+2 c x^3}{\sqrt{b^2-4 a c}}\right )}{3 a \sqrt{b^2-4 a c}}-\frac{d \log \left (a+b x^3+c x^6\right )}{6 a}+\frac{d \log (x)}{a} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 1474
Rule 800
Rule 634
Rule 618
Rule 206
Rule 628
Rubi steps
\begin{align*} \int \frac{d+e x^3}{x \left (a+b x^3+c x^6\right )} \, dx &=\frac{1}{3} \operatorname{Subst}\left (\int \frac{d+e x}{x \left (a+b x+c x^2\right )} \, dx,x,x^3\right )\\ &=\frac{1}{3} \operatorname{Subst}\left (\int \left (\frac{d}{a x}+\frac{-b d+a e-c d x}{a \left (a+b x+c x^2\right )}\right ) \, dx,x,x^3\right )\\ &=\frac{d \log (x)}{a}+\frac{\operatorname{Subst}\left (\int \frac{-b d+a e-c d x}{a+b x+c x^2} \, dx,x,x^3\right )}{3 a}\\ &=\frac{d \log (x)}{a}-\frac{d \operatorname{Subst}\left (\int \frac{b+2 c x}{a+b x+c x^2} \, dx,x,x^3\right )}{6 a}+\frac{(-b d+2 a e) \operatorname{Subst}\left (\int \frac{1}{a+b x+c x^2} \, dx,x,x^3\right )}{6 a}\\ &=\frac{d \log (x)}{a}-\frac{d \log \left (a+b x^3+c x^6\right )}{6 a}-\frac{(-b d+2 a e) \operatorname{Subst}\left (\int \frac{1}{b^2-4 a c-x^2} \, dx,x,b+2 c x^3\right )}{3 a}\\ &=\frac{(b d-2 a e) \tanh ^{-1}\left (\frac{b+2 c x^3}{\sqrt{b^2-4 a c}}\right )}{3 a \sqrt{b^2-4 a c}}+\frac{d \log (x)}{a}-\frac{d \log \left (a+b x^3+c x^6\right )}{6 a}\\ \end{align*}
Mathematica [C] time = 0.0336629, size = 80, normalized size = 1.03 \[ \frac{d \log (x)}{a}-\frac{\text{RootSum}\left [\text{$\#$1}^3 b+\text{$\#$1}^6 c+a\& ,\frac{\text{$\#$1}^3 c d \log (x-\text{$\#$1})-a e \log (x-\text{$\#$1})+b d \log (x-\text{$\#$1})}{2 \text{$\#$1}^3 c+b}\& \right ]}{3 a} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.006, size = 106, normalized size = 1.4 \begin{align*}{\frac{d\ln \left ( x \right ) }{a}}-{\frac{d\ln \left ( c{x}^{6}+b{x}^{3}+a \right ) }{6\,a}}+{\frac{2\,e}{3}\arctan \left ({(2\,c{x}^{3}+b){\frac{1}{\sqrt{4\,ac-{b}^{2}}}}} \right ){\frac{1}{\sqrt{4\,ac-{b}^{2}}}}}-{\frac{bd}{3\,a}\arctan \left ({(2\,c{x}^{3}+b){\frac{1}{\sqrt{4\,ac-{b}^{2}}}}} \right ){\frac{1}{\sqrt{4\,ac-{b}^{2}}}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: ValueError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 2.19806, size = 556, normalized size = 7.13 \begin{align*} \left [-\frac{{\left (b^{2} - 4 \, a c\right )} d \log \left (c x^{6} + b x^{3} + a\right ) - 6 \,{\left (b^{2} - 4 \, a c\right )} d \log \left (x\right ) + \sqrt{b^{2} - 4 \, a c}{\left (b d - 2 \, a e\right )} \log \left (\frac{2 \, c^{2} x^{6} + 2 \, b c x^{3} + b^{2} - 2 \, a c -{\left (2 \, c x^{3} + b\right )} \sqrt{b^{2} - 4 \, a c}}{c x^{6} + b x^{3} + a}\right )}{6 \,{\left (a b^{2} - 4 \, a^{2} c\right )}}, -\frac{{\left (b^{2} - 4 \, a c\right )} d \log \left (c x^{6} + b x^{3} + a\right ) - 6 \,{\left (b^{2} - 4 \, a c\right )} d \log \left (x\right ) - 2 \, \sqrt{-b^{2} + 4 \, a c}{\left (b d - 2 \, a e\right )} \arctan \left (-\frac{{\left (2 \, c x^{3} + b\right )} \sqrt{-b^{2} + 4 \, a c}}{b^{2} - 4 \, a c}\right )}{6 \,{\left (a b^{2} - 4 \, a^{2} c\right )}}\right ] \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.38437, size = 103, normalized size = 1.32 \begin{align*} -\frac{d \log \left (c x^{6} + b x^{3} + a\right )}{6 \, a} + \frac{d \log \left ({\left | x \right |}\right )}{a} - \frac{{\left (b d - 2 \, a e\right )} \arctan \left (\frac{2 \, c x^{3} + b}{\sqrt{-b^{2} + 4 \, a c}}\right )}{3 \, \sqrt{-b^{2} + 4 \, a c} a} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]